
GOPATH:=$(shell go env GOPATH)
.PHONY: run
run:
	go run main.go

.PHONY: swag
swag:
	swag init

.PHONY: build-mac
build-mac:
	go build -o web *.go

.PHONY: build-linux
build-linux:
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o web *.go

.PHONY: test
test:
	go test -v ./... -cover

.PHONY: docker-build
docker-build:
	make build-linux
	docker build . -t web:latest
